
<style>
    @media (min-width: 768px){
        .roleList {
            margin-right: 0;
            margin-left: 0;
            background-color: #fff;
            border-color: #ddd;
            border-width: 1px;
            border-radius: 4px 4px 0 0;
            -webkit-box-shadow: none;
            box-shadow: none;
        }
    }
</style>
<div class="container">
    <h3 class="form-signin-heading text-muted"><?php echo '权限列表'; ?></h3>
    <div class="roleList">
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>App</th>
                    <th>名称</th>
                    <th>全名</th>
                </tr>
            </thead>
            <tbody>
                <?php
                foreach ($roleList as $role) {
                    $appId = $role->appId;
                    $app = BApp::getAppById($appId);
                    $appClass = get_class($app);
                    ?>
                    <tr>
                        <td><?php echo $appClass; ?></td>
                        <td><?php echo $role->getName(); ?></td>
                        <td><?php echo $role->getFullName(); ?></td>
                    </tr>
                <?php } ?>
            </tbody>
        </table>
    </div>
    <div class="roleList">
        <?php
        echo $control->getAjaxLink(array('name' => '新增角色', 'id' => BUIRole::Add_SpaceRole_To_List), array('htmlOptions' => array(
                'class' => 'btn btn-success btn-lg btn-block'
        )));
        ?>
        <?php
        echo $control->getAjaxLink(array('name' => '删除角色', 'id' => BUIUser::Delete_SpaceRole_From_List), array('htmlOptions' => array(
                'class' => 'btn btn-info btn-lg btn-block'
        )));
        ?>
    </div>
</div>